﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectOther.aspx.cs" Inherits="TeacherEval_School_ScoreInput_SelectOther" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <link type="text/css" rel="stylesheet" href="../../Common/css/main.css" />
    <script type="text/javascript" src="../../Common/js/jquery.js"></script>

    <script type="text/javascript" src="../../Common/js/common.js"></script>
    <script language="javascript">
    function onSubjectSelect()
    {

        var btnBind = document.getElementById('btnBind');
        if(btnBind!=null)
        {

            btnBind.click();
        }
    }
    function DoSave()
    {
        var array = document.getElementsByName("Teacher");
        var temp = new Array();
        var j =0;
        for(var i=0;i<array.length;i++)
        {
            if(array[i].checked)
            {
                temp[j] =parseInt( array[i].value);
                j++;
            }
        }

        parent.SaveTeacher(temp);
    }
    </script>
</head>
<body scroll=no>
    <form id="form1" runat="server">
<div class="mainWarp">
    <div class="pageBody">
     <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="True">
     </asp:ScriptManager>
        <div style=" height:200px;">
            <input type=button value="确定" onclick="DoSave()" class="commonBut" />
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                <asp:Repeater ID="Repeater1" runat="server">
                    <HeaderTemplate>
                     <div style="overflow-y:auto;overflow-x:none;height:98%;">
                        <table id="settingTable" border="0" cellpadding="0" cellspacing="1" style="width: 95%;"
                            class="useList">
                            <tr>
                                <th width="25%" style="text-align: center; padding-left: 5px;">
                                    选择</th>
                                <th width="25%" style="text-align: left; padding-left: 5px;">
                                    工号
                                </th>
                                <th width="25%" style="text-align: left; padding-right: 5px;">
                                    姓名
                                </th>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr   >
                            <td  style="background-color: White;text-align:center;"><input name="Teacher" type=checkbox value=<%# Eval("RID")%> /></td>
                            <td style="background-color: White;text-align:left;"><%# Eval("TeachName")%></td>
                            <td style="background-color: White;text-align:left;"><%# Eval("TeachCode")%></td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table></div>
                    </FooterTemplate>
                </asp:Repeater>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnBind" EventName="Click" />
            </Triggers>
            </asp:UpdatePanel>
        </div>
         <div style="display: none;">
            <asp:Button ID="btnBind" runat="server" OnClick="btnBind_Click" Text="btnBind" />
            <asp:TextBox ID="CauseID" runat="server" />
        </div>
    </div>
</div>
    </form>
</body>
</html>
